<script language="javascript">
	function view_company_job(comid){
		document.forms[0].action='<?=site_url("front_job_announ/view_job_by_company")?>/'+ comid;
		document.forms[0].submit();
	}
	function job_detail(annouid){
		document.forms[0].action='<?=site_url("front_job_announ/view_job_detail")?>/'+ annouid;
		document.forms[0].submit();
	}
</script>
<div id="border">  
<form name="" method="post"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top">       
        <table width="705" border="0" align="center" id="usertitle">
          <tr>
            <td><h3 style=""><?=$Z_TRANS->value('menu_job')?> <?=$Z_TRANS->value('title_detail')?></h3></td>
            <td align="right">&nbsp;</td>
          </tr>
        </table>
        <div id="content">
        <div class="user_line_border_top">&nbsp;</div>
          <div style="text-align:center">
 			<?php 		
			if($tablecompany['com_logo']<>''){ 
			$comid=$tablecompany['com_id'];
			?>
             <img src="<?=site_url("front_job_announ/showcompanylogo/$comid")?>" />
              <?php }else{?>
             <img src="<?=base_url();?>images/nopic.gif" width="90" height="60"/>
             <? } ?>

            <div style="font-weight:bold; color:#006295; margin:20px 0; font-size:16px">
            <?php foreach($tabletitle->result() as $title):
				echo htmlspecialchars($title->title_desc);?>
            <?php  endforeach; 	?>
            <font size="2" ><?=$Z_TRANS->value('title_with')?></font> 
            <font color="#CC0000"><?=htmlspecialchars($tablecompany['com_name']);?></font></div>
          </div>
          <div class="full_detail">
          <div class="title-job"><?=$Z_TRANS->value('title_company_history')?></div>
          <div class="sub_detail">
              <div style="padding:0 20px;">
                <?=htmlspecialchars($tablecompany['com_desc']);?>
              </div>
          </div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="userview">
            <tr>
                <th><?=$Z_TRANS->value('title_positions')?></th>
                <th><?=$Z_TRANS->value('title_categories')?></th>
                <th><?=$Z_TRANS->value('title_locations')?></th>
                <th><?=$Z_TRANS->value('title_schedules')?></th>
            </tr>
            <?php foreach($tabletitle->result() as $title):
                    $tablecategory=$this->front_m_job->get_category_by_titleid($title->title_id);
                    $tablelocation=$this->front_m_job->get_location_by_titleid($title->title_id);
                    $tableschedule=$this->front_m_job->get_schedule_by_titleid($title->title_id);
             ?>
            <tr>
                <td valign="middle" align="center"><?=htmlspecialchars($title->title_desc);?></td>
                <td valign="middle" align="left">
                
                <?php foreach($tablecategory->result() as $category): ?>
                       <span class="require">*</span> <?=htmlspecialchars($category->cate_desc);?><br>
                <?php endforeach; ?>	
                
                </td>
                <td valign="middle" align="left">  
				<?php 
                foreach($tablelocation->result() as $location): ?>
                <span class="require">*</span> <?=htmlspecialchars($location->loc_desc);?><br>
                <?php  endforeach; 	?>	   
                </td>
                <td valign="middle" align="left">
                <?php foreach($tableschedule->result() as $schedule): ?>
                <span class="require">*</span> <?=htmlspecialchars($schedule->schedule_desc);?><br>
                <?php endforeach; ?>	
                </td>
            </tr>
            <?php endforeach; ?>	
        	</table>	

            
			<div class="title-job"><?=$Z_TRANS->value('title_duties')?></div>
            <div class="sub_detail">
				 <?php foreach($tabletitle->result() as $title):
                    $tableduty=$this->front_m_job->get_duty_by_titleid($title->title_id);
                 ?>
                 <div class="title-job-sub"><?=$title->title_desc;?></div>
                   <ul>
                      <?php foreach($tableduty->result() as $duty): ?>
                      <li><?=htmlspecialchars($duty->duty_desc);?></li>
                      <? endforeach; ?>
                   </ul>
                 <? endforeach; ?>
             </div>
             <div class="title-job"><?=$Z_TRANS->value('title_requirements')?></div>
             <div class="sub_detail">
				 <?php foreach($tabletitle->result() as $title):
                    $tablerequirement=$this->front_m_job->get_requirement_by_titleid($title->title_id);
                 ?>
                 <div class="title-job-sub"><?=$title->title_desc;?></div>
                  <ul>
                     <?php foreach($tablerequirement->result() as $requirement): ?>
                     <li><?=htmlspecialchars($requirement->req_desc);?></li>
                     <? endforeach; ?>
                </ul>
    
                  <? endforeach; ?>
              
                  <div class="title-job-sub"><?=$Z_TRANS->value('title_app_info')?></div>
                  <div class="title-job-text"><?=htmlspecialchars($tableannoun['announ_notice']);?></div>
                  <div class="title-job-sub"><?=$Z_TRANS->value('title_closing_date')?></div>
                  <div class="title-job-text"><?=htmlspecialchars(date_postgres_to_html($tableannoun['date_close']));?></div>
			  </div>
              <div class="title-job"><?=$Z_TRANS->value('title_contact_info&detail')?></div>
			  <div class="sub_detail">
                <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr><td width="7%"><?=$Z_TRANS->value('title_name')?>:</td><td width="93%"><?=htmlspecialchars($tablecompany['com_contactname']);?></td></tr>
                    <tr><td><?=$Z_TRANS->value('title_phone')?>:</td><td><?=htmlspecialchars($tablecompany['com_phone']);?></td></tr>
                    <tr><td><?=$Z_TRANS->value('title_fax')?>:</td><td><?=htmlspecialchars($tablecompany['com_fax']);?></td></tr>
                    <tr><td><?=$Z_TRANS->value('title_email')?>:</td><td><?=htmlspecialchars($tablecompany['com_email']);?></td></tr>
                    <tr><td><?=$Z_TRANS->value('title_website')?>:</td><td><?=htmlspecialchars($tablecompany['com_website']);?></td></tr>
                    <tr><td><?=$Z_TRANS->value('title_address')?>:</td><td><?=htmlspecialchars($tablecompany['com_address']);?></td></tr>
                </table>
             </div>
          	</div>
		</div><!--Content-->
        </td>
        <td width="254" valign="top">
			<?php include APPPATH."views/templates/common/right_content.php"; ?>
         </td>
         
      </tr>
  </table>
  </form>
</div>
